package com.usian.common.exception;

import com.usian.model.common.enums.AdminHttpCodeEnum;
import com.usian.model.common.enums.AppHttpCodeEnum;
import com.usian.model.common.enums.WemediaHttpCodeEnum;

public class CatchComException {
    public static void catchs(AppHttpCodeEnum codeEnum){
        throw new ComException(codeEnum.getCode(),codeEnum.getErrorMessage());
    }
    public static void catchs(AdminHttpCodeEnum codeEnum){
        throw new ComException(codeEnum.getCode(),codeEnum.getErrorMessage());
    }
    public static void catchs(WemediaHttpCodeEnum codeEnum){
        throw new ComException(codeEnum.getCode(),codeEnum.getErrorMessage());
    }
}
